home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / pascal / dlgdsn41.zip / CPPSKEL.DAT < prev    next >
Text File  |  1993-12-19  |  2KB  |  127 lines

  1. //-------------------------------------------------------
  2. //
  3. //   @XX5.h: Header file for @XX5.cpp
  4. //
  5. //-------------------------------------------------------
  6.  
  7. #if !defined( __@XX4_H )
  8. #define __@XX4_H
  9.  
  10. #define Uses_TStreamable
  11. #define Uses_TStreamableClass
  12. #define Uses_TEvent
  13. #define Uses_TRect
  14. #define Uses_@XX2
  15. @ZZ6
  16. #include <tv.h>
  17. @ZZ7
  18.  
  19. @ZZ2
  20.  
  21. class @XX1 : public @XX2
  22. {
  23.  
  24. public:
  25.  
  26.     @XX1( );
  27.     @XX1( StreamableInit ) :
  28.            @XX2 (streamableInit),
  29.            TWindowInit(@XX1::initFrame) {};
  30.     virtual void handleEvent( TEvent& );
  31.     virtual Boolean valid( ushort );
  32.  
  33. @ZZ1
  34.  
  35. private:
  36.  
  37.     virtual const char *streamableName() const
  38.         { return name; }
  39.  
  40. protected:
  41.  
  42.     virtual void write( opstream& );
  43.     virtual void *read( ipstream& );
  44.  
  45. public:
  46.  
  47.     static const char * const name;
  48.     static TStreamable *build();
  49.  
  50. };
  51.  
  52. inline ipstream& operator >> ( ipstream& is, @XX1& cl )
  53.     { return is >> (TStreamable&)cl; }
  54. inline ipstream& operator >> ( ipstream& is, @XX1*& cl )
  55.     { return is >> (void *&)cl; }
  56. inline opstream& operator << ( opstream& os, @XX1& cl )
  57.     { return os << (TStreamable&)cl; }
  58. inline opstream& operator << ( opstream& os, @XX1* cl )
  59.     { return os << (TStreamable *)cl; }
  60.  
  61.  
  62. #endif  // __@XX4_H
  63.  
  64. //-----------cut here------
  65. //-------------------------------------------------------
  66. //                       @XX5.cpp
  67. //-------------------------------------------------------
  68.  
  69. #define Uses_TEvent
  70. #include <tv.h>
  71.  
  72. #if !defined( __@XX4_H )
  73. #include "@XX5.h"
  74. #endif
  75.  
  76. @XX1::@XX1() :
  77. @ZZ5
  78.        TWindowInit(@XX1::initFrame)
  79.  
  80. {
  81. @ZZ0
  82.  selectNext(False);
  83. }
  84.  
  85. void @XX1::handleEvent( TEvent& event)
  86. {
  87.     @XX2::handleEvent(event);
  88. }
  89.  
  90. Boolean @XX1::valid(ushort command)
  91. {
  92.    Boolean rslt = @XX2::valid(command);
  93.    if (rslt && (command == cmOK))
  94.      {
  95.      }
  96.    return rslt;
  97. }
  98.  
  99. const char * const @XX1::name = "@XX1";
  100.  
  101. void @XX1::write( opstream& os )
  102. {
  103.  @XX2::write( os );
  104. @ZZ4
  105. }
  106.  
  107. void *@XX1::read( ipstream& is )
  108. {
  109.  @XX2::read( is );
  110. @ZZ3
  111.  return this;
  112. }
  113.  
  114. TStreamable *@XX1::build()
  115. {
  116.     return new @XX1( streamableInit );
  117. }
  118.  
  119. // From here to end of file may be removed if @XX1 will not be streamed.
  120.  
  121. TStreamableClass @XX3( @XX1::name,
  122.                         @XX1::build,
  123.                         __DELTA(@XX1)
  124.                       );
  125.  
  126. @ZZ8
  127.